import request from "@/utils/request";
export function tableList(token,data) {
    return request({
        url:'/contact',
        method:'get',
        headers:{
            'authorization':token
        },
        data
    });
}
export function deleteItem(data) {
    console.log(data)
    return request({
        url: `/contact/${data.id}`,  ///  ******edit***********************
        method: "delete",
        data,
    });
}
export function editItem(data) {
    console.log(data)
    return request({
        url: "/contact",
        method: "post",
        data,
    });
}

